<!DOCTYPE html>
<html lang="en">
<!--header-->
<include file="Public:header"/>
<!--header-->

<section id="main-content">
    <section class="wrapper">
        <h3><i class="fa fa-angle-right"></i> 公司信息</h3>
        <div class="row mt">
            <div class="col-md-12">
                <div class="content-panel">
                    <table class="table table-striped table-advance table-hover">
                        <h4><i class="fa fa-angle-right"></i> 公司信息展示<a href="{:U('form')}" class="btn btn-theme btn-default" style="margin-left: 40px">添加/修改公司信息</a></h4>
                        <hr>
                        <if condition="$list.intro != NULL">
                            <div style="margin-left: 100px;margin-top: 50px;margin-bottom: 30%;width: 80%">
                                <h4>公司名称：</h4>
                                <div style="margin-left: 10%">
                                    <b>{$list.name}</b>
                                </div>
                                <br>
                                <h4>公司简介：</h4>
                                <div style="margin-left: 10%">
                                    <b>{$list.intro}</b>
                                </div>
                                <br>
                                <h4>电话：</h4>
                                <div style="margin-left: 10%">
                                    <b>{$list.phone}</b>
                                </div>
                                <br>
                                <h4>地址：</h4>
                                <div style="margin-left: 10%">
                                    <p><b>{$list.address}</b></p>
                                    <br>
                                    <p><b>地址经度：{$list.jing}</b></p>
                                    <p><b>地址纬度：{$list.wei}</b></p>
                                </div>
                                <br>
                                <h4>展示图：</h4>
                                <div style="margin-left: 10%">
                                    <p><img src="{$list.one}" alt=""></p>
                                    <!--<p><img src="{$list.two}" alt=""></p>
                                    <p><img src="{$list.three}" alt=""></p>-->
                                </div>
                            </div>
                            <else/>
                            <div style="text-align: center">您还未添加公司信息</div>
                        </if>
                    </table>
                </div>
            </div>
        </div>
    </section>
</section>

</section>
<!--footer-->
<include file="Public:footer"/>
<!--footer-->
<script type="text/javascript" src="__PUBLIC__/ui/lib/layer/2.4/layer.js"></script>
<script type="text/javascript">
    $(function() {
        //    fancybox
        jQuery(".fancybox").fancybox();
    });
</script>
<script>
    //custom select box
    $(function(){
        $('select.styled').customSelect();
    });
    //跳转页数检测
    $("#tiao").click(function () {
        if(document.frmss.currpage.value == "" || document.frmss.currpage.value > {$totalpage} || document.frmss.currpage.value < 1){
            return false;
        }
    })
    function del(id,type) {
        var currpage = "{$currpage}";
        if(id > 0){
            layer.confirm('确认要删除该管理员吗？删除后不可恢复！', {
                title: '管理员删除提示：',
                btn: ['确定'] //可以无限个按钮
            }, function(index, layero){
                $.ajax({
                    type:"post",
                    data:{id:id,type:type},
                    url:"{:U('Del/del')}",
                    success:function (res) {
                        if(res.status == 1){
                            layer.open({
                                title: '',
                                content: "删除成功",
                            });
                            if(currpage == 1){
                                location.href="__APP__/Dashboard/Admin/index";
                            }else{
                                location.href="__APP__/Dashboard/Admin/index/currpage/"+currpage;
                            }
                        }
                        if(res.status == 2){
                            layer.open({
                                title: ''
                                ,content: "删除失败"
                            });
                            _pass = false;
                        }
                    }
                })
            });
        }
    }
</script>

</body>
</html>
